<?php

/**
 * Tipo form.
 *
 * @package    form
 * @subpackage Tipo
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
 */
class TipoForm extends BaseTipoForm
{
	public function configure()
	{
		parent::configure();
		
		$this->widgetSchema['nm_tipo'] = new sfWidgetFormInput(
			array(),
			array('size' => '50', 'maxlength' => '50', 'class' => 'required')
		);
      	$this->widgetSchema['ds_tipo'] = new sfWidgetFormInput(
			array(),
			array('size' => '100', 'maxlength' => '200')
		);
		
		$this->widgetSchema['categoria_list'] = new sfWidgetFormDoctrineChoiceMany(
			array('model' => 'Categoria'),
			array('style' => 'width: 150px')
		);
		
		$this->widgetSchema->setLabels(array(
			'id_tipo'        => 'ID#',
	      	'nm_tipo'        => 'Nome',
	      	'ds_tipo'        => 'Descrição',
	      	'is_default'     => 'Padrão',
	      	'is_special'     => 'Especial',
	      	'categoria_list' => 'Categorias'
		));
		
		
	}
}